var express = require('express');
var router = express.Router();

router.use("/a.html",function(req,res,next){
  res.send("这是User的子页面a")
})
router.use("/b.html",function(req,res,next){
  res.send("这是User的子页面b")
})
router.use("/c.html",function(req,res,next){
  res.send("这是User的子页面c")
})

router.use("/",function(req,res,next){
  var data = req.session.bodyData;
  data.title = "登录成功页面";
  console.log("data==",data)
  res.render('loginSuccess',{data:data})
})



module.exports = router;
